package top.ljlgithub.api.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName
 * @Description TODO
 * @Author L1470
 * @Date 2021/5/6 15:29
 * @Version 1.0
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class TreeBO implements Cloneable, Serializable {
    private String id;

    private String authName;

    private String path;

    private String  pid;

    private Integer level;

    private List<TreeBO> children;

    @Override
    protected Object clone() {
        TreeBO treeBO = null;
        try {
            treeBO = (TreeBO) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return treeBO;
    }

}
